#!/usr/bin/python3
# -*- coding: utf-8 -*-

"""
服务数据传输对象

定义服务领域的请求和响应数据结构
"""

from typing import Dict, Any, Optional
from pydantic import BaseModel


class HealthResponse(BaseModel):
    """健康检查响应DTO"""
    status: str
    version: str
    timestamp: str


class RedisTestResponse(BaseModel):
    """Redis测试响应DTO"""
    status: str
    connection: str
    test_value: Optional[str] = None
    timestamp: str 